cssparser: Make _gtk_css_parser_has_number() a bit smarter
authorBenjamin Otte <otte@redhat.com>
Tue, 23 Feb 2016 03:19:42 +0000 (04:19 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 23 Feb 2016 03:22:19 +0000 (04:22 +0100)
commit3056d793a40d20574fa95cd6a4f6cc619b724039
tree9df81d7668144188576cf8714633f38196af4db4
parent437dec6295356e39a81f2fcaa10ea979fffd0482
cssparser: Make _gtk_css_parser_has_number() a bit smarter

Previously we just checked the first character. And if that was a "-" as
in "-gtk-some-special-value", we assumed it was a number. Which it
clearly wasn't.

Test included
gtk/gtkcssparser.c
testsuite/css/parser/Makefile.am
testsuite/css/parser/background-win32-color-is-no-error.css [new file with mode: 0644]
testsuite/css/parser/background-win32-color-is-no-error.ref.css [new file with mode: 0644]